Electroretinography (ERG) and pupillography in light- and dark-adapted states